/*
 * WidgetClickeable.h
 *
 *  Created on: Apr 21, 2012
 *      Author: gonzalo
 */

#ifndef WIDGETCLICKEABLE_H_
#define WIDGETCLICKEABLE_H_

#include "Widget.h"
#include "../common/utils/SurfaceUtils.h"
#include "../common/Constantes.h"
#include "Color.h"

class WidgetClickeable: public Widget {
public:
	WidgetClickeable(std::string path,int posX, int posY, Widget* parent = NULL);
	WidgetClickeable(Color& color,int width, int height,int posX, int posY, Widget* parent = NULL);

	virtual void resolve();

	virtual ~WidgetClickeable();


protected:
	SDL_Surface* pressedSurface;
	SDL_Surface* unpressedSurface;
	bool pressed;
private:
    void init(int posX, int posY);


};

#endif /* WIDGETCLICKEABLE_H_ */
